<!--header-->
<include file="Common:header"/>

<!--sidebar-->
<include file="Common:left"/>

<!--main-->
<div class="templatemo-content-wrapper">
    <div class="templatemo-content" style="margin-bottom: 30px;">
        <ol class="breadcrumb">
            <li><a href="{:U('Admin/Index/index')}">Home</a></li>
            <li><a href="{:U('Admin/Webinfo/index')}">Web info</a></li>
            <li class="active">Add Web</li>
        </ol>
        <h1>Add Web Info</h1>
        <div class="row">
            <div class="col-md-4"></div>
            <div class="col-md-4">
                <form action="{:U('Admin/Webinfo/addWebHandle')}" role="form" method="post" id="webform">
                    <div class="form-group">
                        <label for="cid">所属分类</label>
                        <select class="form-control" name="cid">
                            <option>请选择</option>
                            <if condition="($cate)">
                                <foreach name="cate" item="v">
                                    <option value="{$v.id}">{$v.html}{$v.name}</option>
                                </foreach>
                                <else />
                                <option>请先添加3级子分类</option>
                            </if>

                        </select>
                    </div>
                    <div class="form-group">
                        <label for="title">网站名字</label>
                        <input type="text" class="form-control" name="title" placeholder="网站名字" id="title" autocomplete="off">
                    </div>
                    <div class="form-group">
                        <label for="address">网址</label>
                        <input type="text" class="form-control" name="address" placeholder="网址">
                    </div>
                    <div class="form-group">
                        <label for="click">点击次数</label>
                        <input type="text" class="form-control" name="click" placeholder="点击次数" value="100">
                    </div>
                    <div class="form-group">
                        <label for="">网站介绍</label>
                        <textarea class="form-control" rows="8" name="content"></textarea>
                    </div>
                    <button type="submit" class="btn btn-primary btn-lg btn-block">添加</button>
                </form>
            </div>
            <div class="col-md-4"></div>
        </div>


    </div>
</div>

<include file="Common:footer"/>